package day14_io.demo03_编码;

import java.io.UnsupportedEncodingException;

public class Demo03_不同编码集的错误应用 {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String s="中国";
        byte[] b = s.getBytes();
        System.out.println(b.length);
        String gbk = new String(b, "GBK");
        System.out.println(gbk);
    }
}
